﻿using System;
using System.Windows;
using System.Windows.Data;
using TweetSharp.Twitter.Model;

namespace Halfwit.Converters
{
    public class MessageTextConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var user = value as TwitterUser;
            if (user == null) return DependencyProperty.UnsetValue;

            return "Send Direct Message to " + (user.Name ?? user.ScreenName) + " (Ctrl+D)";
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
